<!-- 新闻类型列表 -->
<template>
  <el-form :data="newsTypeInfo" label-position="right" label-width="80px" border>
    <el-form-item label="类型编号">
      <el-input v-model="newsTypeInfo.typeId" disabled/>
    </el-form-item>
    <el-form-item label="类型名称">
      <el-input v-model="newsTypeInfo.typeName" disabled/>
    </el-form-item>
    <el-form-item label="类型介绍">
      <el-input v-model="newsTypeInfo.profile" disabled/>
    </el-form-item>
  </el-form>
</template>

<script>
export default {
  name: 'NewsTypeInfo',
  data () {
    return {
      loading: false,
      newsTypeInfo: {}
    }
  },
  methods: {
    init (typeId) {
      this.$http.get(`/sys/type/info/${typeId}`).then(({ data }) => {
        if (data.code === 200) {
          this.newsTypeInfo = data.data
        }
      })
    }
  },
  created () {
    this.$nextTick(() => {
      this.init()
    })
  }
}
</script>

<style scoped lang="scss">

</style>
